﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace UI.Dendrogram
{
    /// <summary>
    /// no child, at the end of hierarchical data
    /// </summary>
    public class LeafData
    {
        public int ID { get; set; }
        public string Label { get; set; }
        public string TooltipText { get; set; }
        public BinaryHierarchicalData Parent { get; set; }

        public LeafData(BinaryHierarchicalData parent, bool isLeft,
            int id, string label, string tooltip)
        {
            this.Parent = parent;
            this.ID = id;
            this.Label = label;
            this.TooltipText = tooltip;
            if (isLeft)
                this.Parent.LeftLeaf = this;
            else
                this.Parent.RightLeaf = this;
        }
    }
}
